package com.fjwt.gz.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fjwt.gz.core.model.BaseModel;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动白名单，无法参与
 * </p>
 *
 * @author shiyonghao
 * @since 2025-04-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_a_activity_whitelist")
public class ActivityWhitelistEntity extends BaseModel {

    public static LambdaQueryWrapper<ActivityWhitelistEntity> gw(){
        return new LambdaQueryWrapper<>();
    }

    @TableId(value = "activity_whitelist_id", type = IdType.AUTO)
    private Long activityWhitelistId;

    /**
     * 营销活动id
     */
    private Long activityId;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 奖品等级（0：安慰奖 ,1一等奖，2二等奖...）
     */
    private Integer awardLevel;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;


}
